package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.TeachplanDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.TeachplanVo;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-12-03
 */
public interface TeachplanService extends IService<Teachplan> {

    //查看课程大纲计划
    ResponseResult<TeachplanVo> treeNodes(Long courseId);

    //查看课程大纲计划--stream
    ResponseResult<TeachplanVo> treeNodes_stream(Long courseId);

    //新增或修改课程计划
    ResponseResult<TeachplanVo> saveOrUpdateTeachPlan(TeachplanDto teachplanDto);

    //删除课程计划
    ResponseResult deleteTeachPlan(Long teachplanId);
}
